Skip to content

Conversation

karalus
Copy link

@karalus karalus commented Dec 9, 2022

I would appreciate this amendment of the API because it can make my code cleaner, i.e. I can do without using reflection for accessing package protected functionality. Look at my Hack

It is also helping to gain better performance in some scenarios:
If you know in advance that a string cannot match the Pattern because it is not matching the minLength/maxLenght, you can go without creating a Matcher-instance saving memory and CPU.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant